#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''=================================================
@Project :quant_statistical
@FileName:bus_info_
@Python  :Python 3.7+
@Time    :2021/11/18/0018 18:00:21
@Desc    :
=================================================='''
import random


def get_bus_info(station):
    info = []
    for random_bus in range(10):
        bus_name = f"W{random.randint(1, 100)}"
        bus_arrival_time = random.randint(1, 30)
        bus_info = f"{bus_name} 还有 {bus_arrival_time} 分钟到达 {station}"
        info.append({bus_name: bus_info})
    return info


if __name__ == "__main__":
    for bus in get_bus_info('三元里'):
        print(bus)
